<template>
    <h2>列表渲染</h2>
    <ol>
        <li v-for="itme in NameArry">{{ itme }}</li>
    </ol>
    <ol>
        <li v-for="itme in info">账号：{{ itme.id }}姓名{{ itme.name }}年龄{{ itme.age }}地址{{ itme.address }}</li>
    </ol>
</template>

<script setup lang="ts">


//声明数组并初始化数据
const NameArry:string[]=['张三','李四','王五','赵六']
const info=[
    {
        id:101,
        name:'张三',
        age:30,
        address:"北京"

    },
    {
        id:102,
        name:'李四',
        age:30,
        address:"北京"

    },
    {
        id:103,
        name:'王五',
        age:30,
        address:"北京"

    },
    {
        id:104,
        name:'赵六',
        age:30,
        address:"北京"

    }
]

</script>